import Vue from 'vue'
import Router from 'vue-router'
// import { component } from 'vue/types/umd'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        redirect: '/scenic_spot_mgr',
    },
    {
        path: '/home',
        name: 'home',
        component: (resolve) => require(['@/page/home.vue'], resolve),
        hidden: true,
        redirect: '/scenic_spot_mgr',
        children: [
            {
                path: '/scenic_spot_mgr',
                component: resolve => require(['../page/scenic_spot_mgr/scenic_spot_mgr'], resolve)
            },
            {
                path: '/tourist',
                component: resolve => require(['../page/tourist/tourist'], resolve)
            },
            {
                path: '/scenic_explain_mgr',
                component: resolve => require(['../page/scenic_explain_mgr/scenic_explain_mgr'], resolve)
            },
        ]
    },
    ]
})
